class NoChancesTips extends egret.DisplayObjectContainer {
    private bg = new egret.BitmapText;
    private tit = new egret.BitmapText;
    private info = new egret.BitmapText;
    public backButton = new egret.BitmapText;
    public checkButton = new egret.BitmapText;
    public shareButton = new egret.BitmapText;
    constructor(){
        super();       

        //背景
        RES.getResByUrl("resource/assets/reqular.fnt" , this.BG , this,RES.ResourceItem.TYPE_FONT);

        // // 标题:机会去哪了
        // RES.getResByUrl("resource/assets/noChanceTips.fnt" , this.Tit , this,RES.ResourceItem.TYPE_FONT);

        // //中间部分
        RES.getResByUrl("resource/assets/noChanceTips.fnt" , this.middle , this,RES.ResourceItem.TYPE_FONT);

        //底部三个按钮
        RES.getResByUrl("resource/assets/button.fnt" , this.button , this,RES.ResourceItem.TYPE_FONT);

    }

    private BG(font:egret.BitmapFont):void{
        this.bg.font = font;
        this.bg.scaleX = 0.53;
        this.bg.scaleY = 0.55;
        this.bg.x = -10;
        this.addChild(this.bg);
        this.setChildIndex(this.bg , 0);
        this.bg.text = "卷";
    }

    private middle(font:egret.BitmapFont):void{
        //标题
        this.tit.font = font;
        this.tit.scaleX = 0.55;
        this.tit.scaleY = 0.55;
        this.tit.x = 100;
        this.tit.y = 90;
        this.addChild(this.tit);
        this.tit.text = "机";

        // 中间文字
        this.info.font = font;
        this.info.scaleX = 0.65;
        this.info.scaleY = 0.65;
        this.info.x = 100;
        this.info.y = 180;
        this.addChild(this.info);
        this.info.text = "戳";
    }

    public button(font:egret.BitmapFont):void{
        // 返回键
        this.backButton.font = font;
        this.backButton.scaleX = 0.52;
        this.backButton.scaleY = 0.6;
        this.backButton.x = 85;
        this.backButton.y = 315;
        this.addChild(this.backButton);
        this.backButton.text = "返";

        // 查看排名键
        this.checkButton.font = font;
        this.checkButton.scaleX = 0.52;
        this.checkButton.scaleY = 0.6;
        this.checkButton.x = 235;
        this.checkButton.y = 315;
        this.addChild(this.checkButton);
        this.checkButton.text = "查";

        // 分享按钮键
        this.shareButton.font = font;
        this.shareButton.scaleX = 0.52;
        this.shareButton.scaleY = 0.6;
        this.shareButton.x = 385;
        this.shareButton.y = 315;
        this.addChild(this.shareButton);
        this.shareButton.text = "一";
    }


}